import request from '@/utils/request'

const api_name = '/sso'

export default {
  getCode(mobile) {
    return request({
      url: `${api_name}/authCode?mobile=${mobile}`,
      method: 'post'
    })
  },
  validCode(mobile, code) {
    return request({
      url: `${api_name}/valid/authCode?mobile=${mobile}&code=${code}`,
      method: 'post'
    })
  }
}
